package com.haier.npt.security.domain;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import org.hibernate.validator.constraints.NotEmpty;

import java.math.BigInteger;
import java.util.Date;

@TableName("sys_role")
public class SysRole {
	
	/**
	 * 主键
	 */
	@TableId
	private Long id ;
	
	/**
	 * 角色名称
	 */
	@TableField
	@NotEmpty(message="{security.role.name.not.null}")
	private String name ; 
	
	
	/**
	 * 创建时间
	 */
	@TableField
	private Date createdate ; 
		
	
	/**
	 * 1 系统级内置 0 用户自建
	 */
	@TableField
	private Boolean system ;

	/**
	 * 序号
	 */
	@TableField("order_no")
	private Integer orderNo ;
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}


	public Boolean getSystem() {
		return system;
	}

	public void setSystem(Boolean system) {
		this.system = system;
	}

	public Integer getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	} 
	
}
